package com.zxl.designpattern.creator.builder;

/**
 * @author zxl
 * @version 1.0
 * @description 产品类，包含了产品的各个组成部分。创建对象时，需要将各个组成部分设置到产品类中。
 * @date 2025/6/1 10:00
 */
public class Product {
    private String engine;
    private String wheels;
    private String body;
    public void setEngine(String engine) {
        this.engine = engine;
    }

    public void setWheels(String wheels) {
        this.wheels = wheels;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "Product{" +
                "engine='" + engine + '\'' +
                ", wheels='" + wheels + '\'' +
                ", body='" + body + '\'' +
                '}';
    }
}
